Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageCustomizer: Refresh partitions after veritysetup so that hash partition's UUID is accurate #11247

Closed
wants to merge 1 commit into from

Conversation

fintelia
Copy link
Contributor

Summary

This change corrects the value set for the systemd.verity_root_hash= kernel cmdline parameter when hashDeviceMountIdType in the configuration is set to uuid.
 
In particular, the veritysetup command earlier in the function generates the UUID for the verity hash partition. But since the diskPartitions array is queried before that call, the partition would be marked as having an empty filesystem UUID.

An alternative would be to edit only the specific partition's UUID in the diskPartitions array, either by passing a manually generated UUID to veritysetup (via the --uuid=UUID flag) or by querying the chosen UUID after veritysetup had run.

Does this affect the toolchain?

NO

Test Methodology
  • local build

@fintelia fintelia requested a review from a team as a code owner November 27, 2024 20:06
Copy link
Contributor

@romoh romoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants